<?php
class Option extends AppModels
{
    var $name = 'Option';
    function getOption($varname)
    {
        $this-> find('first',array('Option.name' => $varname));
        return $this->data['Option']['value'];
    }
    function setOption($varname,$value)
    {
        if($this->findByName($varname)){
            $this->data['Option']['value']=$value;
            $this->save();
        }
            
    }
    
}
?>